<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    /*
        检测插件
     */
    
    let hasPlugin = function (name) {
        name = name.toLowerCase();
        for(let plugin of window.navigator.plugins){
            console.log(plugin.name)
            if(plugin.name.toLowerCase().indexOf(name) > -1){
                return true;
            }
        }
        return false;
    }
    
    // 检测Flash
    console.log(hasPlugin('Flash'))
    
    // 检测QuickTime
    console.log(hasPlugin('QuickTime'))
</script>
</body>
</html>